import request from '@/utils/requestMd5'

export function category_index(params) {
  return request({
    // url: '/category/index',
    url: '/goods/categoryList',
    method: 'get',
    params
  })
}

export function category_delete(data) {
  return request({
    // url: '/category/delete',
    url: '/goods/deleteCategory',
    method: 'post',
    data:data
  })
}

export function category_add(data) {
  return request({
    // url: '/category/add',
    url: '/goods/addCategory',
    method: 'post',
    data:data
  })
}


export function category_edit(data) {
  return request({
    // url: '/category/edit',
    url: '/goods/editCategory',
    method: 'post',
    data:data
  })
}

export function category_use(data) {
  return request({
    url: '/category/use',
    method: 'post',
    data:data
  })
}

export function category_list(params) {
  return request({
    url: '/category/list',
    method: 'get',
    params
  })
}

export function category_dieDelete(data) {
  return request({
    url: '/category/dieDelete',
    method: 'post',
    data:data
  })
}

